<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script>

export default {
  name: 'App',
  data(){
    return{
      // buildTimeInterval:''
    }
  },
  mounted() {
    // let self=this
    // let appVersion=require('../package.json').lastBuildTime
    // this.buildTimeInterval=setInterval(function() {
    //   setTimeout(self.isNewVersion(appVersion), 0)
    // }, 10000)
  },
  destroyed() {
    // clearInterval(this.buildTimeInterval)
  },
  methods:{
    /*isNewVersion(buildTime) {*/
    /*  let localKey='vue-elementUI-template-lastBuildTime'*/
    /*  let localBuildTime = localStorage.getItem(localKey);*/
    /*  // console.log(localVueVersion)*/
    /*  if (localBuildTime && localBuildTime != buildTime) {*/
    /*    localStorage.setItem(localKey, buildTime);*/
    /*    this.$confirm('您好，系统刚更新功能，请刷新页面。', '提示', {*/
    /*      confirmButtonText: '确定',*/
    /*      cancelButtonText: '取消',*/
    /*      type: 'warning'*/
    /*    }).then(() => {*/
    /*      window.location.reload();*/
    /*    }).catch(() => {*/
    //
    //     });
    //   } else {
    //     if(!localBuildTime){
    //       localStorage.setItem(localKey, buildTime);
    //     }
    //   }
    // },
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  /*margin-top: 60px;*/
  padding-bottom: 30px;
}
</style>
